package com.rzjm.exercise.module.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.rzjm.exercise.common.utils.ExcelColumn;
import lombok.Data;
import org.apache.commons.lang3.StringEscapeUtils;

import java.io.Serializable;
import java.util.Date;


@Data
@TableName("ck_fire_work_record")
public class FireWorkRecord implements Serializable {
	private static final long serialVersionUID = 1L;

	//主键
	@TableId(type = IdType.AUTO)
	private Integer id;
	private Integer shopId;
	@ExcelColumn(value = "商家姓名",col = 1)
	private String shopName;
	private Integer userId;

	@ExcelColumn(value = "姓名",col = 2)
	private String realName;
	@ExcelColumn(value = "身份证号",col = 3)
	private String idNo;
	@ExcelColumn(value = "手机号",col = 4)
	private String phoneNum;
	@ExcelColumn(value = "地址",col = 5)
	private String address;

	private String remark;

	private Integer state;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;

	@ExcelColumn(value = "购买时间",col = 5)
	@TableField(exist = false)
	private String createTimeStr;
}
